import org.god.core.*;
import org.god.utils.Resources;
import org.junit.Test;

public class godtest {
    @Test
    public void test1() throws Exception {
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(Resources.getResourceAsStream("mybatis-config.xml"));
        System.out.println(sqlSessionFactory);
        SqlSession sqlSession = sqlSessionFactory.openSession();
        User user = new User("2", "张三", "23");
        sqlSession.insert("carMapper.insertCar",user);
        sqlSession.commit();
        sqlSession.close();


    }
}
